<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link href="https://cdn.bootcss.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet">
    <link rel="stylesheet" href="/static/css/app.css">
    <title>{block name="title"}用户中心{/block}</title>
    {block name="css"}{/block}
</head>
<body>

<header>
    <div class="container">
        <div class="row">
            <div class="col-sm-4">
                <b class="logo-text">句子迷</b>
            </div>
            <div class="col-sm-8 menu">
                <ul class="menu-box">
                    <li class="menu-item">
                        {if condition="$user"}
                        <a href="{:url1('index/member/index')}">{$user->username}</a>
                        {else}
                        <a href="/login">登陆</a> / <a href="/register">注册</a>
                        {/if}
                    </li>
                    <li class="menu-item"><a href="{:url1('/')}">首页</a></li>
                </ul>
            </div>
        </div>
    </div>
</header>

<div class="container">
    <div class="row">
        <div class="col-sm-3">
            <div class="text-center member-user-card">
                <p>
                    <a href="{:url1('index/member/showAvatarChangePage')}">
                        <img class="avatar" src="{$user->avatar}" width="80" height="80">
                    </a>
                </p>
                <p class="username"><strong>{$user->username}</strong></p>
            </div>

            <ul class="list-group">
                <li class="list-group-item">
                    <a href="{:url1('index/member/index')}">用户中心</a>
                </li>
                <li class="list-group-item">
                    <a href="{:url1('index/member/showSentencesPage')}">我的句子</a>
                </li>
                <li class="list-group-item">
                    <a href="{:url1('index/member/showSentencesCommentPage')}">我的评论</a>
                </li>
                <li class="list-group-item">
                    <a href="{:url1('index/member/showChangePasswordPage')}">修改密码</a>
                </li>
                <li class="list-group-item">
                    <a href="{:url1('index/login/logout')}" onclick="return confirm('确定退出？')">安全退出</a>
                </li>
            </ul>
        </div>
        <div class="col-sm-9">
            {block name="body"}{/block}
        </div>
    </div>
</div>

<div class="container">
    <div class="row">
        <div class="col-sm-12" style="color: gray">
            <p>Copyright Juzimi.com</p>
        </div>
    </div>
</div>

{block name="js"}{/block}
<script src="https://cdn.bootcss.com/jquery/1.10.0/jquery.min.js"></script>
</body>
</html>